package com.zhw.ExcelHandler;

import cn.afterturn.easypoi.handler.impl.ExcelDataHandlerDefaultImpl;
import com.zhw.entity.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @auther weizhang52 on 2018/11/21
 * @description
 * @modify
 */
public class UserExcelHandler extends ExcelDataHandlerDefaultImpl<User> {

    private static final Logger log = LoggerFactory.getLogger(UserExcelHandler.class);


    @Override
    public Object importHandler(User obj, String name, Object value) {
        log.info("handler:"+name+":"+value);
        if(value.equals(20)){
            log.info("筛选不合格数据:"+name+":"+value);
        }
        return super.importHandler(obj, name, value);
    }

}